package martin.tpfinal.reconocer;


import java.io.IOException;
import java.util.Properties;


public class ServerProperties
{
	private static Properties properties;
	
	public static String PORT="PUERTO";
	public static String HOST="DESTINO";
	public static String TIMEOUT="TIME_OUT";
	public static String COEF_TO_ANALICE="COEF_TO_ANALICE";
	public static String TRAINED_NET_NAME="TRAINED_NET_NAME";
	public static String DIRPATH_WIN="dirPath_win";
	public static String DIRPATH_UNIX="dirPath_unix";
	public static String TEMPDIRPATH_WIN="tempDirPath_win";
	public static String TEMPDIRPATH_UNIX="tempDirPath_unix";


	private static final String PROPERTY_FILE = "ServerRecognizer.properties";
	
	
	public static Properties getProperties(){
		if(properties==null){
			properties = new Properties();
            try {
				properties.load(ServerProperties.class.getClassLoader().getResourceAsStream(PROPERTY_FILE));
			} catch (IOException e) {
				
			}
		}
		return properties;
	}

	
	
}
